namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0038 : DbMigration
    {
        public override void Up()
        {
            //DropForeignKey("dbo.fim_money_requests", "bidder_col_Id", "dbo.IcmBidderCollateral");
            //DropIndex("dbo.fim_money_requests", new[] { "bidder_col_Id" });
            AlterColumn("dbo.fim_money_requests", "bidder_col_id", c => c.Int());
            AddForeignKey("dbo.fim_money_requests", "bidder_col_id", "dbo.IcmBidderCollateral", "BidderColId");
            CreateIndex("dbo.fim_money_requests", "bidder_col_id");
        }
        
        public override void Down()
        {
            DropIndex("dbo.fim_money_requests", new[] { "bidder_col_id" });
            DropForeignKey("dbo.fim_money_requests", "bidder_col_id", "dbo.IcmBidderCollateral");
            AlterColumn("dbo.fim_money_requests", "bidder_col_Id", c => c.Int());
            CreateIndex("dbo.fim_money_requests", "bidder_col_Id");
            AddForeignKey("dbo.fim_money_requests", "bidder_col_Id", "dbo.IcmBidderCollateral", "BidderColId");
        }
    }
}
